import java.util.Arrays;

public class NonDuplicatedArrayMain {

	public static void main(String[] args) {
		NonDuplicatedArray ary = new NonDuplicatedArray(6, 1, 49);
		
		// Print array
		System.out.println("Original Array: " + ary);
		
		// Sort the array
		Arrays.sort(ary.getArray());
		System.out.println("  Sorted Array: " + ary);
		
		// Check if there is 5 in it
		int index = -1;
		if ((index = Arrays.binarySearch(ary.getArray(), 5)) < 0)
			System.out.println("There is no 5 in the array!");
		else
			System.out.println("There is a 5 in the array! Index = " + index);
	}
}
